After completing this lesson, you’ll be able to:
You have been assigned to a project to calculate the "walkability" of each address in the city of Vancouver.
Your colleague wasn't aware of FME style best practices when they gave us the workspace, which made working with it a bit challenging. We need to present our workspace, so we want it to look neat, organized, and well-documented.
Start FME Workbench (2023.1 or later) and open the starting workspace (C:\FMEData\Workspaces\UseDataIntegrationBestPractices\exercise-improving-workspace-style.fmw).
The workspace is pretty unorganized. Let’s examine it in sections to figure out how it works.
Firstly, let's clean up the transformers. Move the transformers around so that there are no overlapping connections.
For the FeatureJoiner, you could move the Crime reader below the Prepare Addresses to Join bookmark, or you can reorder the FeatureJoiner ports. Right-click on the Left input port, and select Move Down. Now the two connection lines are not crossing:
Changing port order can help tidy your workspace, but beware that the different order might confuse experienced FME users who expect ports to be in a particular location.
Move the transformers into a logical order and add a bookmark around any logical groupings:
Don't forget to expand the Prepare Addresses to Join bookmark by clicking the right-pointing arrow in the bookmark’s top-left corner and organize those transformers:
Having rearranged the transformers and added bookmarks we can now add annotations and color to highlight what is going on. This step will require some inspection of the transformers to find out what they are doing as well as inspecting the readers to know which format they are in:
Adding good annotation where necessary will help determine what is going on in the workspace.
By adding a bookmark around a reader or writer and then setting the color to the preset Readers/Writers color, it is quick to see at a glance where your readers or writers are:
You can also do this with FeatureReaders and FeatureWriters:
Your final workspace should look something like this:
Collapse all the bookmarks if you wish and run the workspace once more to ensure all the caches are fresh. It might be a good idea to re-run the entire workspace.
You can choose to save this workspace as a regular workspace or as a template workspace.